@import "@assets/css/common.scss";

.table-content {
    width: 100%;
    @include position();

    .refresh-btn {
        @include position(absolute, right, bottom, 16px, 16px, 9);
        width: 24px;
        height: 20px;
        cursor: pointer;
        background: url('#{$iconPath}/refresh-icon.png') center center no-repeat;
    }

    .public-table {

        .ant-table {
            table {
                //background-color: $bg9;
            }

            @each $w in 90px, 120px, 150px, 180px, 210px, 240px, 270px, 300px {
                .omission-#{$w} {
                    .ell-1 {
                        width: $w - 30px;
                        font-style: normal;
                        @include ell_n(1);
                    }
                }
            }

            .options {

                .option-btns {
                    text-align: center;

                    .txt {
                        margin-right: 15px;
                        font-size: $fzn;
                        color: $cor6;
                        opacity: 0.8;
                        cursor: pointer;

                        &:hover {
                            opacity: 1;
                        }

                        &:last-child {
                            margin-right: 0;
                        }
                    }

                    .btn-item {
                        display: inline-block;
                        vertical-align: top;
                        margin-right: 15px;
                        width: 18px;
                        height: 18px;
                        opacity: 0.8;
                        cursor: pointer;

                        &:hover {
                            opacity: 1;
                        }

                        &:last-child {
                            margin-right: 0;
                        }
                    }

                    .btn-edit{
                        background: url('#{$iconPath}/icon-edit.png') center center no-repeat;
                    }

                    .btn-del {
                        background: url('#{$iconPath}/icon-del.png') center center no-repeat;
                    }
                }
            }

            .ant-table-placeholder {
                color: $cor0;
                //background-color: $bg8;
                border: 0;
                display: none;
            }

            .ant-table-thead {
                tr {
                    th {
                        font-size: $fzsl;
                        padding: 10px 15px;
                        color: $tc;
                        border-width: 0 1px;
                        border-style: dashed solid;
                        border-color: $tbc;
                        background-color: $ttbg0;

                        &:last-child {
                            border-right: none;
                        }

                        &:first-child {
                            border-left: none;
                        }
                    }
                }
            }

            .ant-table-tbody {
                tr {

                    &.ant-table-row-selected {
                        td {
                            background-color: transparent;
                        }
                    }

                    &:nth-child(even) {
                        background-color: $ebg;
                    }

                    &:hover {
                        td {
                            background-color: $hbg;
                        }
                    }

                    td {
                        padding: 10px 15px;
                        border-bottom: 0;
                        color: $tc;
                        font-size: $fzn;
                    }
                }
            }
        }

        .ant-table-pagination {

            &.ant-pagination {
                float: left;
                margin-left: 16px;
            }

            .ant-pagination-item {
                min-width: 0;
                width: 28px;
                height: 28px;
                line-height: 26px;
                background-color: transparent;
                //border-color: $bg6;
                a {
                    //color: $cor8;
                }

                &.ant-pagination-item-active {
                    //border: $b2;
                    //background-color: $bg10;

                    a {
                        //color: $cor0;
                    }
                }
            }

            .ant-pagination-prev, .ant-pagination-next {
                min-width: 0;
                width: 28px;
                height: 28px;
                line-height: 28px;
                .ant-pagination-item-link, .ant-pagination-item-link {
                    background-color: transparent;
                    //border-color: $bg6;
                    //color: $cor8;
                }
            }

            .ant-pagination-options {
                //color: $cor8;
            }

            .ant-select-selection--single {
                height: 30px;
                .ant-select-selection__rendered {
                    line-height: 28px;
                }
            }

            .ant-pagination-options-quick-jumper input {
                height: 30px;
                //border: $b1;
                background-color: transparent;
                //color: $cor8;
            }

            .ant-select-selection {
                //border: $b1;
                background-color: transparent;
                //color: $cor8;

                .ant-select-arrow {
                    //color: $cor8;
                }
            }

            .ant-pagination-total-text {
                //color: $cor8;
            }
        }
    }
}
